Skip to content

Conversation

@error9098x
Copy link
Collaborator

  • changes the existing structure to support the new FastAPI endpoints with the server-side conversational threads.

Copilot AI review requested due to automatic review settings November 6, 2025 11:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the chat interface to migrate from a client-side sessionStorage-based chat thread system to a backend API-driven conversation management system. The changes introduce proper conversation persistence, improved message structure, and better source handling.

  • Replaces local thread storage with server-side conversation management via REST APIs
  • Refactors message structure from question/answer pairs to role-based chat messages
  • Implements optimistic UI updates for better user experience
  • Adds URL extraction from context sources when explicit source URLs are missing

Reviewed Changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 5 comments.

File Description
frontend/nextjs-frontend/components/SourceList.tsx Updated to handle ContextSource objects and extract URLs from context text when source is unavailable
frontend/nextjs-frontend/components/MessageList.tsx Refactored to display role-based messages with proper user/assistant UI distinction
frontend/nextjs-frontend/components/ChatHistory.tsx Renamed thread terminology to conversations and added active conversation highlighting
frontend/nextjs-frontend/app/page.tsx Major refactor to integrate backend conversation APIs, implement CRUD operations, and add proper error handling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@error9098x error9098x force-pushed the frontend-db branch 2 times, most recently from 30fb822 to 1d2a61d Compare November 6, 2025 11:08
@luarss
Copy link
Collaborator

luarss commented Nov 10, 2025

@error9098x Is there a way you can test this PR independently of #181?

Signed-off-by: error9098x <[email protected]>
Signed-off-by: Jack Luar <[email protected]>
Signed-off-by: Jack Luar <[email protected]>
- backend: order messages by created_at
- fix conversations payload

Signed-off-by: Jack Luar <[email protected]>
@luarss luarss merged commit 5071615 into The-OpenROAD-Project:master Nov 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants